import common as com

import itertools

with open('24114-573459.txt', 'r') as file:


    num = len(file.readlines())

    print("文本文件的行数：",num)

    #content = file.read()
    #print("文本内容：",content)

    def calculate_combinations(form_data):
        total_combinations = 1
        for sublist in form_data:
            total_combinations *= len(sublist)
        return total_combinations


    cartesian_product = list(itertools.product(com.get_form_data()))
    # 如果 cartesian_product 包含列表，比如 [[1, 2], [1, 3], ...]
    # 将每个内部列表转换为元组或直接处理列表
    #result_strings = [' '.join(map(str, tup)) for tup in cartesian_product]
    #print(result_strings)

    # 生成一个组合后的一维新数组
    #new_array = [item for sublist in form_data for item in sublist]
    #print(calculate_combinations(form_data))
    print(com.get_form_data())
